home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
IRIS Performer 2.2 Friends Demo
/
SGI IRIS Performer 2.2 Friends Demo.iso
/
friends
/
devices
/
BGSystems
/
examples
/
check_eprom.c
next >
Wrap
C/C++ Source or Header
|
1997-10-31
|
868b
|
46 lines
/*
* Copyright 1994 BG Systems, Inc.
* check_rev.c
*
* routine that checks the EPROM revision
*
* Author Date Comments
* John Green 21-Oct-94 Author
* John Green 01-Feb-95 Final changes for revision 3.0 release
*/
static char SccsId[] = "@(#)check_eprom.c 1.2 01 Feb 1995";
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include "lv3.h"
extern int open_lv(bglv *, char *, int);
extern int check_rev(bglv *);
bglv bgdata;
static char Cpy[] = "Copyright (c), BG Systems";
int main(int argc, char **argv)
{
int st;
/*
* Open the serial port, and request a copyright string
*/
printf("Attempting to open the serial port\n");
st = open_lv(&bgdata, argv[1], FB_NOBLOCK);
if (st < 0)
{
printf("\tUnable to open port\nbye\n");
exit(1);
}
else
printf("\tOK\n");
exit(0);
}